package com.cdgeekcamp.redas.wechat.entity;

import com.cdgeekcamp.redas.wechat.service.MsgHandlerService;

/**
 * 视频消息
 */
public class VideoMessageEntity extends MessageBaseEntity {
    // 消息id
    private Long MsgId;
    // 图片消息媒体id，可以调用多媒体文件下载接口拉取数据
    private String MediaId;
    // 视频消息缩略图的媒体id，可以调用多媒体文件下载接口拉取数据
    private String ThumbMediaId;

    public VideoMessageEntity() {
    }

    public VideoMessageEntity(String fromUserName, String toUserName, Long createTime, String msgType) {
        super(fromUserName, toUserName, createTime, msgType);
    }

    public VideoMessageEntity(Long msgId, String mediaId, String thumbMediaId) {
        MsgId = msgId;
        MediaId = mediaId;
        ThumbMediaId = thumbMediaId;
    }

    public VideoMessageEntity(String fromUserName, String toUserName, Long createTime, String msgType, Long msgId, String mediaId, String thumbMediaId) {
        super(fromUserName, toUserName, createTime, msgType);
        MsgId = msgId;
        MediaId = mediaId;
        ThumbMediaId = thumbMediaId;
    }

    public Long getMsgId() {
        return MsgId;
    }

    public void setMsgId(Long msgId) {
        MsgId = msgId;
    }

    public String getMediaId() {
        return MediaId;
    }

    public void setMediaId(String mediaId) {
        MediaId = mediaId;
    }

    public String getThumbMediaId() {
        return ThumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        ThumbMediaId = thumbMediaId;
    }

    @Override
    public String doReply() {
        return new MsgHandlerService().videoHandler(this);
    }
}
